﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.ServiceModel;
using System.Web.Ria.Data;
using System.Windows.Ria;
using System.Windows.Ria.Services;
using Thor.Domain;
using Thor.Domain.Configuration;

namespace Thor.WebRole.Services
{
    public partial class CalendarManagerDomainContext
    {
        public override LoadOperation Load(EntityQuery query, LoadBehavior loadBehavior, Delegate callback, object userState)
        {
            LoadOperation loadOperation = base.Load(query, loadBehavior, callback, userState);
            loadOperation.Completed += new EventHandler(LoadCompleted);
            return loadOperation;
        }

        public override SubmitOperation SubmitChanges(Action<SubmitOperation> callback, object userState)
        {
            return base.SubmitChanges(callback, userState);
        }

        private void LoadCompleted(object sender, EventArgs e)
        {
            //We need to decrypt the object that has come across the wire.
            LoadOperation loadOperation = sender as LoadOperation;
        }
    }
}
